﻿package mortal.mvc.core
{
    import com.gengine.core.call.*;

    public class NetDispatcher extends Object
    {
        private static var command:Caller = new Caller();

        public function NetDispatcher()
        {
            return;
        }// end function

        public static function addCmdListener(param1:Object, param2:Function) : void
        {
            command.addCall(param1, param2);
            return;
        }// end function

        public static function removeCmdListener(param1:Object, param2:Function) : void
        {
            command.removeCall(param1, param2);
            return;
        }// end function

        public static function dispatchCmd(param1:Object, param2:Object) : Boolean
        {
            return command.call(param1, param2);
        }// end function

        public static function hasCmdListener(param1:Object) : Boolean
        {
            return command.hasCall(param1);
        }// end function

    }
}
